<?php

class CaptchaController extends UE_Controller_Action {
	
	/**
	 * 获取验证码
	 *
	 */
	public function getAction() {
		$this->id = (int)$this->id;
		
		$entry = empty($_GET['entry']) ? 'ueshop' : $_GET['entry'];
		$capt = new UE_Captcha();
		$capt->useNoise  = 0;
		$capt->gradient  = 26;
		$capt->useCurve  = 0;
		//$capt->useImgBg  = 1;
		$capt->fontSize  = (empty($this->id) || $this->id < 10 || $this->id > 120) ? 15 : $this->id;
		$capt->entry($entry);
	}
}
